package com.longcai.entity.homegood;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import org.apache.solr.client.solrj.beans.Field;

import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 购物车
 * </p>
 *
 * @author LWK
 * @since 2019-04-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ClyjShoppingCart implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;
    /**
     * 用户名
     */
    private String userId;
    /**
     * 商品id
     */
    private String goodsId;
    /**
     * 数量
     */
    private Integer amount;
    /**
     * 规格
     */
    private String specId;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
    /**
     * 购买价格
     */
    private BigDecimal goodsPrice;
    /**
     * 购买零钱
     */
    private BigDecimal goodsPocket;
    /**
     * 购买红包
     */
    private BigDecimal goodsHb;
    /**
     * 购买积分
     */
    private BigDecimal goodsIntegration;
    /**
     * 购物车类型
     */
    private String cartType;
    /**
     * 商铺id
     */
    private String shopId;
    /**
     * 商品详情
     */
    @TableField(exist = false)
    private ClyjGoodsHomepage goodsVo;


}
